package com.main.modulemysql.web;

import com.main.modulemysql.entity.HjzkFaultFind;

import java.text.DecimalFormat;

/**
 * @Auther: IceZhang
 * @Date: 2018/8/7 14:46
 * @Description:
 */
public class JSONTest {


    public static void main(String[] args){
        HjzkFaultFind hjzkFaultFind=new HjzkFaultFind();
        hjzkFaultFind.setCode("test");
        int a=9;
        int b=7;
        DecimalFormat df=new DecimalFormat("0.0");
        String result = df.format((float) b / a * 100);
        System.out.println(result);



    }
}